<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% 
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>大旗科技有限公司</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta http-equiv="Access-Control-Allow-Origin" content="*">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link type="image/x-icon" rel="shortcut icon" href="<%=basePath %>/favicon.ico" />
	<link rel="stylesheet" href="<%=basePath %>/resource/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="<%=basePath %>/resource/css/index.css" media="all" />
	<link rel="stylesheet" href="<%=basePath %>/resource/fonts/iconfont.css" media="all" />
	<script type="text/javascript" src="<%=basePath %>/resource/layui/layui.js"></script>
	<script type="text/javascript">var projectPath = "<%=basePath %>"</script>
	<script type="text/javascript">
		//加载功能菜单
		var $,layer,menuData;
		layui.use(['jquery','layer'],function(){
			layer = parent.layer === undefined ? layui.layer : top.layer;
			$ = layui.$;
			$.ajax({
			   type: 'GET',
			   url: projectPath + "/menu",
			   async: false,
			   beforeSend: function () {
				   layerIndex = layer.load(2);
	           },
		       success: function(data){
		    	   menuData = data.menuData;
		    	   var classify = data.menuClassify;
		    	   //回现数据,一定要在success函数中生成dom,否则请求都失败了,生成dom也没有意义
		    	   var pcMenus = $(".topLevelMenus");
		    	   var mobileMenus = $(".mobileTopLevelMenus dl");
		    	   for(var item = 0;item < classify.length; item++){
		    		   pcMenus.append(
		    		    '<li class="layui-nav-item layui-this" data-menu="'+classify[item].classify+'">'
	    					+ '<a href="javascript:void(0)">'
		    					+ '<i class="'+classify[item].icon+'"></i>'
		    					+ '<cite>'+classify[item].title+'</cite>'
	    					+ '</a>'
	    				+ '</li>'
		    		   );
		    		   
		    		   mobileMenus.append(
		    		    '<dd data-menu="'+classify[item].classify+'">'
							+ '<a href="javascript:void(0);">'
								+ '<i class="'+classify[item].icon+'"></i>'
								+ '<cite>'+classify[item].title+'</cite>'
							+ '</a>'
					    + '</dd>'
		    		   );
		    	   }
			   },
			   error: function() {
				   layer.msg('加载功能菜单失败,请联系开发人员!');
			   },
			   complete: function(){
				   layer.close(layerIndex);
			   }
	        })
		})
	</script>
</head>
<body class="main_body">
	<div class="layui-layout layui-layout-admin">
		<!-- 顶部 -->
		<div class="layui-header header">
			<div class="layui-main mag0">
				<a href="#" class="logo"><i class="iconfont icon-daqi"></i>大旗科技有限公司</a>
				<!-- 显示/隐藏菜单 -->
				<a href="javascript:;" class="seraph hideMenu iconfont icon-mean">
				</a>
				<!-- 顶级菜单 -->
				<ul class="layui-nav mobileTopLevelMenus" mobile>
					<li class="layui-nav-item" data-menu="enterpriseManagement">
						<a href="javascript:;"><i class="iconfont icon-mean"></i><cite style="font-size: 18px;">菜单</cite></a>
						<dl class="layui-nav-child"></dl>
					</li>
				</ul>
				<ul class="layui-nav topLevelMenus" pc></ul>
				<!-- 天气信息 -->
			    <div class="weather" pc>
			    	<div id="tp-weather-widget"></div>
					<script>(function(T,h,i,n,k,P,a,g,e){g=function(){P=h.createElement(i);a=h.getElementsByTagName(i)[0];P.src=k;P.charset="utf-8";P.async=1;a.parentNode.insertBefore(P,a)};T["ThinkPageWeatherWidgetObject"]=n;T[n]||(T[n]=function(){(T[n].q=T[n].q||[]).push(arguments)});T[n].l=+new Date();if(T.attachEvent){T.attachEvent("onload",g)}else{T.addEventListener("load",g,false)}}(window,document,"script","tpwidget","//widget.seniverse.com/widget/chameleon.js"))</script>
					<script>tpwidget("init", {
					    "flavor": "slim",
					    "location": "WX4FBXXFKE4F",
					    "geolocation": "enabled",
					    "language": "zh-chs",
					    "unit": "c",
					    "theme": "chameleon",
					    "container": "tp-weather-widget",
					    "bubble": "disabled",
					    "alarmType": "badge",
					    "color": "#FFFFFF",
					    "uid": "U9EC08A15F",
					    "hash": "039da28f5581f4bcb5c799fb4cdfb673"
					});
					tpwidget("show");</script>
			    </div>
			    <!-- 顶部右侧菜单 -->
			    <ul class="layui-nav top_menu">
					<li class="layui-nav-item" pc>
						<a href="javascript:;" class="clearCache"><i class="layui-icon" data-icon="&#xe640;">&#xe640;</i><cite>清除缓存</cite><span class="layui-badge-dot"></span></a>
					</li>
					<li class="layui-nav-item lockcms" pc>
						<a href="javascript:;"><i class="iconfont">&#xe60d;</i><cite>锁屏</cite></a>
					</li>
					<li class="layui-nav-item" id="userInfo">
						<a href="javascript:;"><img src="<%=basePath %>/resource/img/face.jpg" class="layui-nav-img userAvatar" width="35" height="35"><cite class="adminName">${user.useAuthor}</cite></a>
						<dl class="layui-nav-child">
							<dd><a href="javascript:;" data-url="<%=basePath %>/admin/changePwd.jsp"><i class="iconfont">&#xe618;</i><cite>修改密码</cite></a></dd>
							<dd><a href="javascript:;" class="showNotice"><i class="layui-icon">&#xe645;</i><cite>系统公告</cite><span class="layui-badge-dot"></span></a></dd>
							<dd pc><a href="javascript:;" class="functionSetting"><i class="layui-icon">&#xe620;</i><cite>功能设定</cite><span class="layui-badge-dot"></span></a></dd>
							<dd pc><a href="javascript:;" class="changeSkin"><i class="layui-icon">&#xe61b;</i><cite>更换皮肤</cite></a></dd>
							<dd><a href="<%=basePath %>/logout" class="signOut"><i class="iconfont">&#xe60f;</i><cite>退出</cite></a></dd>
						</dl>
					</li>
				</ul>
			</div>
		</div>
		<!-- 左侧导航 -->
		<div class="layui-side layui-bg-black">
			<div class="user-photo">
				<a class="img" title="我的头像" ><img src="<%=basePath %>/resource/img/face.jpg" class="userAvatar"></a>
				<p>你好！<span class="userName">${user.useAuthor}</span>, 欢迎登录</p>
			</div>
			<div class="navBar layui-side-scroll" id="navBar">
				<ul class="layui-nav layui-nav-tree">
					<li class="layui-nav-item layui-this">
						<a href="javascript:;" data-url="<%=basePath %>/admin/enterpriseManagement/statisticsMap/statistics-map.jsp"><i class="iconfont icon-map"></i><cite>系统首页</cite></a>
					</li>
				</ul>
			</div>
		</div>
		<!-- 右侧内容 -->
		<div class="layui-body layui-form">
			<div class="layui-tab mag0" lay-filter="bodyTab" id="top_tabs_box">
				<ul class="layui-tab-title top_tab" id="top_tabs">
					<li class="layui-this" lay-id=""><i class="iconfont icon-map"></i><cite>系统首页</cite></li>
				</ul>
				<ul class="layui-nav closeBox">
				  <li class="layui-nav-item">
				    <a href="javascript:;"><i class="layui-icon caozuo">&#xe643;</i> 页面操作</a>
				    <dl class="layui-nav-child">
					  <dd><a href="javascript:;" class="refresh refreshThis"><i class="layui-icon">&#xe669;</i> 刷新当前</a></dd>
				      <dd><a href="javascript:;" class="closePageOther"><i class="iconfont icon-close-other"></i> 关闭其他</a></dd>
				      <dd><a href="javascript:;" class="closePageAll"><i class="iconfont icon-close-all"></i> 关闭全部</a></dd>
				    </dl>
				  </li>
				</ul>
				<div class="layui-tab-content clildFrame">
					<div class="layui-tab-item layui-show">
						<iframe src="<%=basePath %>/admin/enterpriseManagement/statisticsMap/statistics-map.jsp"></iframe>
					</div>
				</div>
			</div>
		</div>
		<!-- 底部--> 
		<div class="layui-footer footer">
			<!-- <p><a onclick="donation()" class="layui-btn layui-btn-danger layui-btn-sm">问题反馈</a></p>-->
			<p>Copyright ©2018 大旗科技有限公司</p>
		</div>
	</div>
	<!-- 移动导航 -->
	<div class="site-tree-mobile layui-hide"><i class="layui-icon">&#xe602;</i></div>
	<div class="site-mobile-shade"></div>
	<script type="text/javascript" src="<%=basePath %>/resource/js/index.js"></script>
	<script type="text/javascript" src="<%=basePath %>/resource/js/cache.js"></script>
</body>
</html>